Preparing the Environment

Before starting this tutorial --

- Make sure that your PATH environment variable points to

<your_jdk_installation_dir>/bin
so that SNiFF+ can find the JDK javac compiler.
- If you didn't select the "Other Packages" option (for Java) during the SNiFF+ installation process, start the SNiFF+ installation again and select only this option.
- If you are using JDK version 1.1.x, set the following system environment variable
CLASSPATH=<your_jdk_1.1x_dir>/lib/classes.zip
The JDK 1.1.x compiler needs this to find the JDK class library.

| On Windows NT
| Problems can be caused by a CLASSPATH environment variable that does not conform to the upper case conventions (e.g., an application may set an environment variable as ClassPath ). If this is the case, set a single environment variable CLASSPATH to point to all the paths in an existing CLASSPATH as well as any variation such as ClassPath.

- If you are using JDK version 1.2, make sure you do not have a
CLASSPATH system environment variable pointing to older JDK class libraries.
You needn't set any CLASSPATH environment variable at all in order for the JDK 1.2 compiler to find the JDK class library. However, system environment variables will override the compiler's defaults, so caution is advised.
- You can download the latest JDK from
http://java.sun.com
Copying the example
Copy the directory, including subdirectories,
<your_sniff_installation_dir>/example/java/sniff_java
to somewhere, where you have write permissions. We will refer to the full path of this directory as <sniff_java> in the rest of this tutorial.
The <sniff_java> directory contains

- two directories (

pwe_1 and pwe_2 ) which will hold your Private Working Environments.
pwe_1 already contains the OfficeApp directory with the example source code files ( <sniff_java>/pwe_1/OfficeApp ).
pwe_2 (at present empty) will be used later on for team work.
- a Repository (
<sniff_java>/repository ), which will be used for version control (at present empty).
- A configuration directory (
<sniff_java>/working_envs_config ), where SNiFF+ will maintain working environment configuration information (at present empty).